#include "success.h"
#include "ui_success.h"

Success::Success(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Success)
{
    ui->setupUi(this);
    this->setWindowTitle("胜利");

    returnButton = new QPushButton(this);
    returnButton->setGeometry(QRect(80,170,71,61));
    returnButton->setText("重新开始");

    quitButton = new QPushButton(this);
    quitButton->setGeometry(QRect(230,170,71,61));
    quitButton->setText("退出游戏");

    connect(returnButton,&QPushButton::clicked,this,&Sendslot);
    connect(quitButton,SIGNAL(clicked()),this,SLOT(close()));
}

Success::~Success()
{
    delete ui;
}

void Success::Sendslot(){
    emit Mysignal();
}
